/*
 * @Author: your name
 * @Date: 2021-02-21 10:46:59
 * @LastEditTime: 2021-04-17 09:27:46
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /dvr-ui/src/main.js
 */
import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';


import App from './App.vue';
//vuex的全局变量
import store from './store'
//vue router使用
import VueRouter from 'vue-router'
import routers from './router'

Vue.use(ElementUI);




//路由配置
const router = new VueRouter({
  mode: 'history',//history表示使用html5的history模式
  routes: routers
})
Vue.use(VueRouter)

new Vue({
  el: '#app',
  store,
  router,
  render: h => h(App)
});
